import { IForm } from '@/base-ui/form/type/types'

export const modalConfig: IForm = {
  formItems: [
    {
      field: 'name',
      type: 'input',
      label: '商品名称',
      placeholder: '请输入名称'
    },
    {
      field: 'oldPrice',
      type: 'input',
      label: '原价',
      placeholder: '请输入原价'
    },
    {
      field: 'newPrice',
      type: 'input',
      label: '现价',
      placeholder: '请输入现价'
    },
    {
      field: 'desc',
      type: 'input',
      label: '商品描述',
      placeholder: '请输入描述'
    },
    {
      field: 'status',
      type: 'input',
      label: '商品状态',
      placeholder: '请输入状态'
    },
    {
      field: 'imgUrl',
      type: 'input',
      label: '商品图片',
      placeholder: '请输入地址'
    },
    {
      field: 'inventoryCount',
      type: 'input',
      label: '商品库存',
      placeholder: '请输入库存'
    },
    {
      field: 'saleCount',
      type: 'input',
      label: '销售量',
      placeholder: '请输入销量'
    },
    {
      field: 'favorCount',
      type: 'input',
      label: '收藏量',
      placeholder: '请输入收藏数'
    },
    {
      field: 'address',
      type: 'input',
      label: '库存地点',
      placeholder: '请输入地点'
    }
  ],
  colLayout: { span: 12 },
  itemLayout: {
    padding: '1px 5px'
  },
  labelWidth: '70px',
  title: '新建商品'
}
